using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmMpJobSiteCommandDtls")]
    public class MpJobSiteCommandDtls
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "JobSiteCmdDtlsId", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public int JobSiteCmdDtlsId { get; set; }

		[ForeignKey("JobSiteCmd")]
		[DataMember, Display(Name = "JobSiteCmdId", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public int JobSiteCmdId { get; set; }

		[DataMember, Display(Name = "CmdDtlsFlag", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public string CmdDtlsFlag { get; set; }

		[ForeignKey("JobSite")]
		[DataMember, Display(Name = "JobSiteId", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public Nullable<int> JobSiteId { get; set; }

		[DataMember, Display(Name = "FromRefNo", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public string FromRefNo { get; set; }

		[DataMember, Display(Name = "ToRefNo", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public string ToRefNo { get; set; }

		[DataMember, Display(Name = "FromJobSiteName", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public string FromJobSiteName { get; set; }

		[DataMember, Display(Name = "ToJobSiteName", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public string ToJobSiteName { get; set; }

		[ForeignKey("FromUpper")]
		[DataMember, Display(Name = "FromUpperId", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public Nullable<int> FromUpperId { get; set; }

		[ForeignKey("ToUpper")]
		[DataMember, Display(Name = "ToUpperId", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public Nullable<int> ToUpperId { get; set; }

		[DataMember, Display(Name = "FromUpperName", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public string FromUpperName { get; set; }

		[DataMember, Display(Name = "ToUpperName", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public string ToUpperName { get; set; }

		[DataMember, Display(Name = "DateStart", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public Nullable<System.DateTime> DateStart { get; set; }

		[DataMember, Display(Name = "OldStartDate", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public Nullable<System.DateTime> OldStartDate { get; set; }

		[DataMember, Display(Name = "NewCmdDate", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public Nullable<System.DateTime> NewCmdDate { get; set; }

		[DataMember, Display(Name = "OldCmdDate", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public Nullable<System.DateTime> OldCmdDate { get; set; }

		[DataMember, Display(Name = "NewCmdRefNo", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public string NewCmdRefNo { get; set; }

		[DataMember, Display(Name = "OldCmdRefNo", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public string OldCmdRefNo { get; set; }

		[ForeignKey("FromJobSiteLevel")]
		[DataMember, Display(Name = "FromJobSiteLevelId", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public Nullable<int> FromJobSiteLevelId { get; set; }

		[ForeignKey("ToJobSiteLevel")]
		[DataMember, Display(Name = "ToJobSiteLevelId", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public Nullable<int> ToJobSiteLevelId { get; set; }

		[DataMember, Display(Name = "FromJobDescription", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public string FromJobDescription { get; set; }

		[DataMember, Display(Name = "ToJobDescription", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public string ToJobDescription { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		[DataMember, Display(Name = "Cancel", ResourceType = typeof(Resources.MpJobSiteCommandDtlsResource))]
        public Nullable<int> Cancel { get; set; }

		public virtual MpJobSiteCommand JobSiteCmd { get; set; }

		public virtual HRM.JobSite JobSite { get; set; }

		public virtual HRM.JobSite FromUpper { get; set; }

        public virtual HRM.JobSite ToUpper { get; set; }

        public virtual HRM.MasJobSiteLevel FromJobSiteLevel { get; set; }

		public virtual HRM.MasJobSiteLevel ToJobSiteLevel { get; set; }

    }
}